package main

import (
	"fmt"
	"net/rpc/jsonrpc"
)

func main(){

	Client, error:=jsonrpc.Dial("tcp","127.0.0.1:9501")

	if error!=nil{
		return
	}

	defer Client.Close()
	num:=make(map[string]int,2)
	num["a"]=1
	num["b"]=2
	var resp int =0

	Client.Call("beifeng.Add",num,&resp)


	fmt.Printf("resp=%v\n",resp)
}
